package com.itheima.classloader;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/*
在模块下创建文件夹  resources
右键  mark dictionary  as resources root
 */
public class Demo02 {

    public static void main(String[] args) throws IOException {
       /* ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();

        InputStream is = systemClassLoader.getResourceAsStream("prop.properties");*/
        InputStream is = ClassLoader.getSystemResourceAsStream("prop.properties");
        Properties prop = new Properties();
        prop.load(is);
        System.out.println(prop);


    }
}
